<script type='text/javascript'>
function lookup(inputString) {
    if(inputString.length == 0) {
        $('#suggestions').hide();
    } else {
        $.post("http://localhost/sip-pzh/admin/autocomplete/", {queryString: ""+inputString+""}, function(data){
            if(data.length > 0) {
                $('#suggestions').show();
                $('#autoSuggestionsList').html(data);
            }
        });
    }
}

function fill(thisValue) {
    $('#id_input').val(thisValue);
    setTimeout("$('#suggestions').hide();", 200);
}   
</script>
    <div class="centercontent">

					<form class="stdform stdform2" method="post" action="#">

                    	<p>
                        	<label>Nama Santri</label>
                            <span class="field"><input name="name" id="id_input" type="text">

<div id="suggestions">
    <img src="<?=config_item('dir_img')?>upArrow.png">
    <div class="autoSuggestionsList_l" id="autoSuggestionsList">    
    </div>
</div></span>
                        </p>
                        
                        <p>
                        	<label>Jenis Pelanggaran</label>
                            <span class="field"><?php echo form_dropdown('id_pelanggaran', $pelanggaran_sip, 'default');?></span>
                        </p>
                        
                        <p>
                        	<label>Detail Pelanggaran<small>Keterangan Lanjutan tentang Pelanggaran</small></label>
                            <span class="field"><textarea cols="80" rows="5" name="keterangan_pl" id="location2" class="longinput"></textarea></span>
                        </p>
                        
                        <p>
                        	<label>Sanksi <small>Sanksi Berdasarkan Bobot pada Qonun Asasi dgn Pertimbangan Umur/Dampak Pelanggaran</small></label>
                            <span class="field"><textarea cols="80" rows="5" name="sanksi" id="location2" class="longinput"></textarea></span>
                        </p>
                        <p>
                            <label>Waktu</label>
                            <span class="field"><input type="text" name="waktu_pelanggaran" id="tanggal_lahir" class="longinput" /></textarea></span>
                        </p>
                            <p>
                            <label>Tempat</label>
                            <span class="field"><input type="text" name="tempat_pelanggaran" id="firstname2" class="longinput" /></span>
                        </p><p>
                            <label>Saksi</label>
                            <span class="field"><input type="text" name="saksi" id="firstname2" class="longinput" /></span>
                        </p>
                            <p>
                            <label>Denda</label>
                            <span class="field"><input type="text" name="denda" id="firstname2" class="longinput" /></span>
                        </p>
                        
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit Button</button>
                            <input type="reset" class="reset radius2" value="Reset Button" />
                        </p>
                    </form>
    </div>
